#include <vector>
#include <fstream>
//#define opencvdebug
#ifdef opencvdebug
#include <opencv2\opencv.hpp>
#endif
class YUVFaceJudgemine
{
public:
	YUVFaceJudgemine();
	~YUVFaceJudgemine();
	std::vector<unsigned char> GetYImg(std::string yuvpath, int width, int height);	// get Y solo channel image
	std::vector<unsigned char> GetBGRImg(std::string yuvpath, int width, int height);	// get BGR 3 channel image
	std::vector<unsigned char> GetBGRAImg(std::string yuvpath, int width, int height);	// get BGRA 4 channel image

#ifdef opencvdebug
	cv::Mat GetYImgCV(std::string yuvpath, int width, int height);
#endif
private:
	std::vector<unsigned char> readYUVText(std::string yuvpath, int width, int height);
};

